package com.bjh.service;

import com.bjh.annotation.Service;
import com.bjh.po.People;

import java.util.ArrayList;
import java.util.List;


@Service
public class PeopleServiceImpl implements PeopleService{


    @Override
    public People query(long id) {
        People people = new People();
        people.setId(id);
        people.setName("coco");
        return people;
    }

    @Override
    public List<People> list() {
        List<People> list = new ArrayList<>();
        People people = new People();
        people.setId(123L);
        people.setName("coco");

        People people2 = new People();
        people2.setId(124L);
        people2.setName("baojh");

        list.add(people);
        list.add(people2);
        return list;
    }
}
